package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * @ClassName WeChatUserInfo
 * @Description TODO
 * @Author luguanqing
 * @Date 2021/4/19 10:39
 * @Version 1.0
 */
public class WeChatUserInfo {
    String openid;

    String nickname;

    Integer sex;

    String province;

    String city;

    String country;

    String headimgurl;

    String privilege;

    String unionid;

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public String getHeadimgurl() {
        return headimgurl;
    }

    public void setHeadimgurl(String headimgurl) {
        this.headimgurl = headimgurl;
    }

    public String getPrivilege() {
        return privilege;
    }

    public void setPrivilege(String privilege) {
        this.privilege = privilege;
    }

    public String getUnionid() {
        return unionid;
    }

    public void setUnionid(String unionid) {
        this.unionid = unionid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("openid", getOpenid())
                .append("nickname", getNickname())
                .append("sex", getSex())
                .append("province", getProvince())
                .append("city", getCity())
                .append("country", getCountry())
                .append("headimgurl", getHeadimgurl())
                .append("privilege", getPrivilege())
                .append("unionid", getUnionid())
                .toString();
    }
}
